#include "_2048.h"

int main()
{
    _2048* myGame = new _2048();
    do {
        myGame->combineAndMove(_getch());
    } while (!(myGame->YNvictory() || myGame->YNgameOver()));
    if (myGame->YNvictory())
    {
        myGame->outVictory();
    }
    else if (myGame->YNgameOver())
    {
        myGame->outgameOver();
    }
    delete myGame;
    return 0;
}